/*
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


#ifndef __MOKOKO_ALBUM__H__
#define __MOKOKO_ALBUM__H__
#include "list.h"
#include "song.h"

enum ALBUM_TYPE {
    DIRECTORY = 0,
    ID3ALBUM,
    ID3AUTHOR,
    ID3YEAR,
    FILESIZE,
    FILEDATE,
};


struct _Album {
    char * dir;
    char * name;
    char * image;
    int count;
    struct list_head node;
    struct list_head songs_head;
};

typedef struct _Album Album;


enum ALBUM_TYPE album_construct_type_get();
Album *album_new(const char *name, const char *dir);
void album_free(Album *A);

void album_song_add(Album *, Song *);
int album_song_del(Album *, Song *);


#endif
